package com.cwt_taxi_xa.model;

import java.io.Serializable;

/**
 * 本地存储数据类
 * @author wlh
 *
 */
public class LocalInfo implements Serializable{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/** 运营数据信息类型*/
	public static final int TYPE_BUSINESS = 0;
	/** 签到信息类型*/
	public static final int TYPE_CHECK_IN = 1;
	/** 签退信息类型*/
	public static final int TYPE_CHECK_OUT = 2;
	/** GSP位置信息类型*/
	public static final int TYPE_GPS = 3;
	/** 签到签退信息类型*/
	public static final int TYPE_CHECK = 4;

	private int msgId;	// 消息id
	private int status;	// 上传状态
	private String data;	// 数据区
	private String time;	// 时间
	private String date;	// 日期
	private String meterCode;
	private String carTimes;
	/**
	 * 消息type
	 *
	 * 0: 运营数据
	 * 1: 上班签到数据
	 * 2: 下班签退数据
	 * 3: GPS位置数据
	 */
	private int type;

	public LocalInfo() {
		super();
		setStatus(0);
	}

	/**
	 * 消息type
	 *
	 * 0: 运营数据
	 * 1: 上班签到数据
	 * 2: 下班签退数据
	 * 3: GPS位置数据
	 */
	public LocalInfo(int type) {
		super();
		this.type = type;
		setStatus(0);
	}

	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public int getMsgId() {
		return msgId;
	}
	public void setMsgId(int msgId) {
		this.msgId = msgId;
	}
	public int getType() {
		return type;
	}
	/**
	 * 消息type
	 *
	 * 0: 运营数据
	 * 1: 上班签到数据
	 * 2: 下班签退数据
	 * 3: GPS位置数据
	 */
	public void setType(int type) {
		this.type = type;
	}
	/** 上传状态	0：未上传	1：已上传*/
	public int getStatus() {
		return status;
	}
	/** 上传状态	0：未上传	1：已上传*/
	public void setStatus(int status) {
		this.status = status;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getMeterCode() {
		return meterCode;
	}

	public void setMeterCode(String meterCode) {
		this.meterCode = meterCode;
	}

	public String getCarTimes() {
		return carTimes;
	}

	public void setCarTimes(String carTimes) {
		this.carTimes = carTimes;
	}
}
